<template>
  <div>
    <!-- 最外层容器 -->
    <el-container>
      <!-- 上半部分：顶栏 -->
      <el-header class="layout-header">
        <h1>校园快递代取系统后台管理</h1>

      </el-header>
      <!-- 下半部分：容器 -->
      <el-container class="layout-body">
        <!-- 下半部分的左侧边栏 -->
        <el-aside class="layout-aside">
          <el-menu
              router
              :default-active="$route.path"
              class="el-menu-vertical-demo"
              background-color="#545c64"
              text-color="#fff"
              active-text-color="#ffd04b">
            <!--仪表盘-->
            <el-menu-item index="/sys-admin">
              <i class="el-icon-s-home"></i>
              <span slot="title">仪表盘</span>
            </el-menu-item>
            <!--用户管理-->
            <el-menu-item index="/sys-admin/user/list">
              <i class="el-icon-user-solid"></i>
              <span slot="title">用户管理</span>
            </el-menu-item>
            <!--订单管理-->
            <el-menu-item index="/sys-admin/order/list">
              <i class="el-icon-s-order"></i>
              <span slot="title">订单管理</span>
            </el-menu-item>
            <!--订单回收站-->
            <el-menu-item index="/sys-admin/order/recycle-bin">
              <i class="el-icon-delete-solid"></i>
              <span slot="title">订单回收站</span>
            </el-menu-item>
            <!--用户反馈管理-->
            <el-menu-item index="/sys-admin/feedback/list">
              <i class="el-icon-question"></i>
              <span slot="title">用户反馈管理</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <!-- 下半部分的右侧主体部分 -->
        <el-main class="layout-main">
          <router-view></router-view>
        </el-main>

      </el-container>
    </el-container>

  </div>

</template>

<script>
export default {
  data() {
    return {
    }
  },
  methods: {
  }
}
</script>

<style>
.layout-header {
  background: #1684b0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.layout-header h1 {
  color: #fff;
  text-align: left;
  line-height: 20px;
}

.layout-body {
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 0;
  right: 0;
}

.layout-aside {
  text-align: left;
  background-color: #545c64;
}

.layout-aside i {

}

.layout-main {

}

.el-menu-item.is-active {
  background: #2c3e50 !important;
}
</style>

<script>
export default {
  data() {
    return {
      activeMenuItemPath: ''
    }
  },
  mounted() {

  }
}
</script>
